package com.stepshop.core.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;

import com.stepshop.sys.service.CfgCategoryService;

public class BaseListener extends ContextLoaderListener {
//	@Autowired
//	CfgCategoryService cfgCategoryService;
	@Override
	public void contextInitialized(ServletContextEvent event) {
		super.contextInitialized(event);
//		List<CfgCategory> caches = cfgCategoryService.queryCfgCatesCache();
//		System.out.println(caches);
		System.out.println("11111111111111111111");
		
	}
	@Override
	public WebApplicationContext initWebApplicationContext(ServletContext arg0) {
		return super.initWebApplicationContext(arg0);
	}
//	public CfgCategoryService getCfgCategoryService() {
//		return cfgCategoryService;
//	}
//	public void setCfgCategoryService(CfgCategoryService cfgCategoryService) {
//		this.cfgCategoryService = cfgCategoryService;
//	}
}
